package concurrency;

import java.io.IOException;

/**
 * Created by sunzhengjie on 2017/1/17.
 */
public class ResponsiveUi extends Thread{

    private static volatile double d = 1;

    public ResponsiveUi() {
        setDaemon(true);
        start();
    }

    public void run(){
        while(true){
            d = d+(Math.PI + Math.E) /d;
        }
    }

    public static void main(String[] arg9) throws IOException {
        new ResponsiveUi();
        int read = System.in.read();
        System.out.println(d);
    }
}
